﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FireZoneGroupLoopStatus.aspx.cs"
    Inherits="MTRC.ODMS.Web.SOM.FireProtection.FireZoneGroupLoopStatus" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxControlToolkit" %>
<%@ Register Src="~/UserControl/Menu/PageFoot.ascx" TagName="PageFoot" TagPrefix="WebStructure" %>
<%@ Register Src="~/UserControl/Menu/TabStrip.ascx" TagName="TabStrip" TagPrefix="WebStructure" %>
<%@ Register Src="~/UserControl/Menu/PageHead.ascx" TagName="PageHead" TagPrefix="WebStructure" %>
<%@ Register Src="~/UserControl/Menu/MainMenu.ascx" TagName="MainMenu" TagPrefix="WebStructure" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Operational Data Management System</title>
    <link href="<%=ResolveUrl("~/CSS/common.css")%>" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .spanLable
        {
            width: 122px;
            padding-left: 8px;
            display: inline-block;
        }
        
        .liStyle
        {
            padding-top: 8px;
        }
        
        .Isolation
        {
            color: Red;
            font-weight: bold;
        }
        
        .Restore
        {
            color: green;
            font-weight: bold;
        }
        
        .Normal
        {
            color: Black;
            font-weight: bold;
        }
        .Test
        {
            color: yellow;
        }
        .TdFireLink
        {
            width: 55px;
            font-weigth: lighter;
        }
        /* Add By Gordon 20150624 */
        .tableRow
        {
            border-top: 1px solid #d5dfe5;
            padding-bottom: 10px;
        }
        #tbZoneGroup
        {
            margin-left: 5px;
            margin-top: 5px;
        }
        
        .SecondRow
        {
            padding-bottom: 10px;
        }
        
        #phTable
        {
            vertical-align: top;
        }
        /* ******************* */
        
        /*Add by gordon 20150722 U128*/
        .ColorIndicator
        {
            padding-top:2px;
            padding-bottom:2px;
            padding-left:2px;
            padding-right:2px;
            font-weight: bold;
            text-align: center;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <AjaxControlToolkit:ToolkitScriptManager ID="ToolkitScriptManager" runat="server">
    </AjaxControlToolkit:ToolkitScriptManager>
    <table border="0" cellpadding="0" cellspacing="0" class="Page_Container">
        <tr>
            <td colspan="2" class="Page_Head">
                <WebStructure:PageHead ID="PageHead" runat="server" />
            </td>
        </tr>
        <tr>
            <td class="Page_Left">
                <WebStructure:MainMenu ID="MainMenu" runat="server" AppPath="../../" CurrMenuID="M1403" />
            </td>
            <td class="Page_Right">
                <table class="Page_Contents" border="0">
                    <tr>
                        <td class="TabStrip">
                            <WebStructure:TabStrip ID="TabStrip" CurrMenuID="M140303" ParentMenuID="M1403" DMenuMode="CurrOnly"
                                runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td class="Contents" style="height: 16px">
                            <fieldset>
                                <legend class="Title1">
                                    <asp:Label runat="server" ID="lblFireProtectionGroup"></asp:Label>
                                </legend>
                                
                                        <%-- Update By Gordon 20150703 --%>
                                        <%-- Old Layout --%>
                                        <%--<table style ="padding-top:8px" border="0">
                          <tr>
                             <td><asp:Label runat="server" ID="lblFireSystem" Text="FireSystem" Width="120px"></asp:Label></span></td>
                             <td>
                                 <asp:DropDownList ID ="ddlFireLinkCode" Width="240px" runat ="server" AutoPostBack="True" OnSelectedIndexChanged="ddlFireLinkCode_SelectedIndexChanged" ></asp:DropDownList>
                             </td>
                             <td><asp:Label ID="lblspacer" runat="server" Width="50px"></asp:Label></td>
                             <td><asp:Label runat ="server" ID ="Label1" Width="110px"></asp:Label></span>
                                 <asp:RadioButtonList Enabled ="false" runat ="server" ID ="rblFireLinkStatus" RepeatDirection="Horizontal" RepeatLayout="Flow" ></asp:RadioButtonList>
                             </td>
                          </tr>
                          <tr style ="padding-top:3px">
                             <td><asp:Label runat ="server" ID="Label2"></asp:Label></td>
                             <td><asp:Label runat ="server" ID="Label3"></asp:Label></td>
                             <td>&nbsp;</td>
                             <td>
                                  <div style="float:left;"><asp:Label ID="Label4" runat ="server" Text ="I"></asp:Label></div>
                                  <div style="float:left;">
                                    <table border ="1" cellspacing ="0" cellpadding ="0" style="width:190px;" >
                                      <tr>
                                        <td class ="Normal" width="60" align =center><asp:Label runat ="server"  ID="Label5" Text ="Testing"></asp:Label></td>
                                        <td class ="Isolation" width="60" align =center ><asp:Label ID="Label6" Text ="Isolate"  runat="server" ></asp:Label></td>
                                        <td class ="Restore" width="60" align =center><asp:Label ID="Label7" runat =server Text ="Restore"></asp:Label></td>
                                      </tr>
                                    </table>
                                  </div>
                             </td>
                             <%--<td>   
                                <table border ="1" cellspacing =0 cellpadding =0 >
                                    <tr>
                                        <td class ="Normal" width="60" align =center><asp:Label runat =server  ID="lblNormal" Text ="Testing"></asp:Label></td>
                                        <td class ="Isolation" width="60" align =center ><asp:Label ID="lblIsolate" Text ="Isolate"  runat=server ></asp:Label></td>
                                        <td class ="Restore" width="60" align =center><asp:Label ID="lblRestore" runat =server Text ="Restore"></asp:Label></td>
                                    </tr>
                                </table>
                             </td> 
                          </tr>
                         <tr style ="padding-top:8px">
                          <td>
                              <asp:Timer ID="Timer1" runat="server">
                              </asp:Timer>
                          </td>
                          <td valign="top"><span><asp:Button ID ="Button1" runat="server" Text ="Refresh" /></span></td>
                          <td>&nbsp;</td>
                          <td>
                             <asp:PlaceHolder ID="phTable" runat="server" ></asp:PlaceHolder>
                          </td>
                         </tr>
                            </table>--%>
                                        <%-- New Layout --%>
                                                  <asp:UpdatePanel runat="server" ID="udpFireLink">
                                    <ContentTemplate>
                                        <table id="tbZoneGroup" border="0" cellspacing="0">
                                            <tr>
                                                <td width="170">
                                                    <%-- delete by gordon 20150722 U128 --%>
                                                    <%--<asp:Label runat="server" ID="lblFireLinkStatus"></asp:Label>--%>&nbsp;
                                                </td>
                                                <td colspan="5" align="right">
                                                    <%-- delete by gordon 20150722 U128 --%>
                                                    <%--<asp:Label ID="lblIsolateFireZone" runat="server" Text="I"></asp:Label>--%>
                                                    <%-- update by gordon 20150722 U128 --%>
                                                    <%--<asp:Label ID="lblSpace" runat="server" Width="50px"></asp:Label>--%>
                                                    <asp:Label ID="lblSpace" runat="server" Width="150px"></asp:Label>
                                                    <asp:Label runat="server" ID="lblStatusReportTime"></asp:Label>
                                                    <asp:Label runat="server" ID="lblStatusReportTimeInfo"></asp:Label>
                                                    <asp:Button ID="btnRefresh" runat="server" Text="Refresh" />
                                                    <asp:Timer ID="tmrAutoRefresh" OnTick="tmrAutoRefresh_Tick" runat="server">
                                                    </asp:Timer>
                                                </td>
                                            </tr>
                                            </table>
                                            <table id="Table1" border="0" cellspacing="0">
                                 
                                            <%-- delete by gordon 20150722 U128 --%>
                                            <%--<tr>
                                                <td class="SecondRow">
                                                    <span style="font-weight: bold;"><asp:Label ID="lblFLNormal" runat="server"></asp:Label></span><span>,</span>
                                                    <span style="font-weight: bold;color: Red"><asp:Label ID="lblOOS" runat="server"></asp:Label></span><span>,</span>
                                                    <span style="font-weight: bold; color: Fuchsia"><asp:Label ID="lblVRT" runat="server"></asp:Label></span><asp:Label ID="lblComma" runat="server">,</asp:Label>
                                                    <span style="font-weight: bold;color: #FFCC33"><asp:Label ID="lblTest" runat="server"></asp:Label></span>
                                                </td>
                                                <td  class="SecondRow" colspan="5">
                                                    <span class="Normal"><asp:Label runat="server" ID="lblNormal" Text="Testing"></asp:Label></span><span>,</span>
                                                    <span class="Isolation"><asp:Label ID="lblIsolate" Text="Isolate" runat="server"></asp:Label></span><asp:Label ID="lblZGComma" runat="server">,</asp:Label>
                                                    <span class="Restore"><asp:Label ID="lblRestore" runat="server" Text="Restore"></asp:Label></span>
                                                </td>
                                            </tr>--%>
                                            <asp:Repeater ID="rptFZGrpList" runat="server" OnItemDataBound="rptFZGrpList_ItemDataBound">
                                                <ItemTemplate>
                                                    <tr>
                                                        <td valign="top" class="tableRow">
                                                            <%--<asp:Label runat="server" ID="lblFireLink" Font-Bold="true" Text='<%# Eval("FireLinkCode") %>'></asp:Label>--%>
                                                            <asp:Label ID="lblContainerFireLink" runat="server">
                                                                <asp:Label runat="server" ID="lblFireLink" CssClass="ColorIndicator" Font-Bold="true" Text='<%# Eval("FireLinkCode") %>'></asp:Label>
                                                            </asp:Label>
                                                            <asp:HiddenField ID="hdnFireLinkId" Value='<%# Eval("FireLinkID") %>' runat="server" />
                                                        </td>
                                                        <td colspan="5" class="tableRow">
                                                            <asp:RadioButtonList Style="display: inline" Enabled="false" runat="server" ID="rblFireLinkStatus"
                                                                RepeatDirection="Horizontal" RepeatLayout="Flow" Visible="false">
                                                            </asp:RadioButtonList>
                                                            <asp:PlaceHolder ID="phTable" runat="server"></asp:PlaceHolder>
                                                        </td>
                                                    </tr>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                            <%-- Add by gordon 20150722 U128 --%>
                                            <tr>
                                                <td width="160">
                                                    <asp:Label runat="server" ID="lblFireLinkStatus"></asp:Label>
                                                </td>
                                                <td colspan="5">
                                                    <asp:Label ID="lblIsolateFireZone" runat="server" Text="I"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="SecondRow">
                                                    <asp:Label ID="lblContainerNormal" runat="server" CssClass="ColorIndicator">
                                                        <asp:Label ID="lblFLNormal" runat="server"></asp:Label></asp:Label><span style="font-weight: bold;">,</span><asp:Label
                                                            ID="lblContainerOOS" runat="server" CssClass="ColorIndicator">
                                                                <asp:Label ID="lblOOS" runat="server"></asp:Label></asp:Label><span style="font-weight: bold;">,</span><asp:Label
                                                                    ID="lblContainerVRT" runat="server" CssClass="ColorIndicator">
                                                                        <asp:Label ID="lblVRT" runat="server"></asp:Label></asp:Label><asp:Label ID="lblComma"
                                                                            Font-Bold="true" runat="server">,</asp:Label><asp:Label ID="lblContainerTest" runat="server"
                                                                                CssClass="ColorIndicator">
                                                                                    <asp:Label ID="lblTest" runat="server"></asp:Label></asp:Label>
                                                </td>
                                                <td class="SecondRow" colspan="5">
                                                    <span class="Normal">
                                                        <asp:Label runat="server" ID="lblNormal" Text="Testing"></asp:Label></span><span>,</span><span
                                                            class="Isolation"><asp:Label ID="lblIsolate" Text="Isolate" runat="server"></asp:Label></span><asp:Label
                                                                ID="lblZGComma" runat="server">,</asp:Label><span class="Restore"><asp:Label ID="lblRestore" runat="server" Text="Restore"></asp:Label></span>
                                                </td>
                                            </tr>
                                        </table>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </fieldset>
                        </td>
                    </tr>
                    <tr>
                        <td class="Page_Foot" style="height: 54px">
                            <WebStructure:PageFoot ID="PageFoot" runat="server" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
